<form class="form-horizontal clearfix" role="form" name="siteEditForm"
	action="${(cardone.webContextUrl)!}/configuration/site/save.json">
	<input type="hidden" name="id" value="${site.id!}">
	<div class="form-group">
		<label class="col-sm-1 control-label">项目：</label>
		<div class="col-sm-3">
			<#assign projectList = cardone.DictionaryUtils.findListByTypeCode("project")> 
			<select name="projectId" class="form-control"> <#list projectList as project> <#if project.id ==
				site.projectId>
				<option value="${project.id}" selected="selected">${project.name}</option> <#else>
				<option value="${project.id}">${project.name}</option> </#if></#list>
			</select>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-1 control-label">代码：</label>
		<div class="col-sm-3">
			<input type="text" name="code" value="${site.code!}" class="form-control" placeholder="请输入代码" maxlength="128">
		</div>
		<label class="col-sm-1 control-label">名称：</label>
		<div class="col-sm-3">
			<input type="text" name="name" value="${site.name!}" class="form-control" placeholder="请输入名称" maxlength="128">
		</div>
		<label class="col-sm-1 control-label">样式：</label>
		<div class="col-sm-3">
			<#assign styleList = cardone.DictionaryUtils.findListByTypeCode("site_style")> 
			<select name="styleId" class="form-control"><#list styleList as style> <#if style.id == site.styleId>
				<option value="${style.id!}" selected="selected">${style.name!}</option> <#else>
				<option value="${style.id!}">${style.name!}</option> </#if> </#list>
			</select>
		</div>
	</div>
	<div class="pull-right">
		<button class="btn btn-primary c1-save" type="button">保存</button>
		<button class="btn" type="reset">重置</button>
		<button class="btn c1-back" type="button">返回</button>
	</div>
</form>
